from django.urls import path
from rest_framework.routers import SimpleRouter

from . import views

urlpatterns = [
    # 获取所有标签列表
    path('labels/', views.LablesView.as_view()),
    # 用户关注的标签
    path('labels/users/', views.LablesUsersView.as_view()),
    # 关注标签
    path('labels/<int:id>/focusin/', views.LabelFocusin.as_view()),
    # 取消关注标签
    path('labels/<int:id>/focusout/', views.LabelFocusout.as_view()),
    # 获取标签详情
    path('labels/<int:id>/', views.LabelDetails.as_view()),
    # 获取标签信息详情列表
    path('labels/full/', views.LabelFull.as_view()),


]
router = SimpleRouter()
router.register('questions', views.QuestionViewSet)
router.register('reply', views.ReplyViewSet)
urlpatterns += router.urls
# for u in urlpatterns:
#     print(u)